package Entity;

import java.security.Timestamp;

public class Message {
    private int id = 0;
    private String mess = null;
    private String se_number = null;
    private String re_number = null;
    private Timestamp time = null;
    private int status = -1;

    public Message() {}

    // ע�����
    public Message(String mess, String se_number, String re_number) {
        this.mess = mess;
        this.se_number = se_number;
        this.re_number = re_number;
        this.status = -1;
    }
    // ע�����
    public Message(String mess, String se_number, String re_number, Timestamp time) {
        this.mess = mess;
        this.se_number = se_number;
        this.re_number = re_number;
        this.time = time;
        this.status = -1;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMess() {
        return mess;
    }

    public void setMess(String mess) {
        this.mess = mess;
    }

    public String getSe_number() {
        return se_number;
    }

    public void setSe_number(String se_number) {
        this.se_number = se_number;
    }

    public String getRe_number() {
        return re_number;
    }

    public void setRe_number(String re_number) {
        this.re_number = re_number;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
